<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/addnews.css">
<title>新增新闻</title>
</head>
<body>
	<div id="head">
		<div class="logo">
			<img src="picture/logo.png">
		</div>
		<div class="title">
			<span>知天下</span>
		</div>
	</div>
	<div id="nav">
		<div class="navblock">
			<ul>
				<li><a href="javascript:viod(0)" class="detail">添加新闻</a></li>
			</ul>
		</div>
	</div>
		<div id="content">
			<div class="form">
				<form action="<%=request.getContextPath()%>/AddNewsServlet" method="post">
					<span>新闻标题</span>
					<input type="text" name="title" required="true">
					<span>新闻内容</span>
					<textarea rows="20" class="textarea" name="content" required="true"></textarea>
					<span>新闻热度</span>
					<input type="text" name="weight" class="hot" placeholder="输入一个整数" required="true">
					<input name="type" value="<%=request.getParameter("type") %>" type="hidden">
					<input type="submit" value="发布">
				</form>
			</div>
		</div>
	<div id="bottom">
		<div class="text">Copyright ©2018-2018 ZTX</div>
	</div>
</body>
</html>
